﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Mes.Pendant.ArrivalNotices.Dto;
using Mes.Pendant.SupplierManagements;
using Volo.Abp.Application.Services;

namespace Mes.Pendant.ArrivalNotices
{
    public interface IArrivalNoticeServices:IApplicationService
    {
        /// <summary>
        /// 获取到货通知数据
        /// </summary>
        /// <param name="inboundListCode"></param>
        /// <param name="notifiName"></param>
        /// <param name="index"></param>
        /// <param name="limit"></param>
        /// <returns></returns>
         Task<PagedResult> GetArrivalDatas(string? inboundListCode, string? notifiName, int index = 1, int limit = 10);
        /// <summary>
        /// 获取供应商数据
        /// </summary>
        /// <returns></returns>
        Task<List<Suppierlistdto>> Getsuppernames();
        /// <summary>
        /// redis绑定供应商
        /// </summary>
        /// <returns></returns>
          Task<List<SupplierManagement>> GetSupperlist();
        /// <summary>
        /// 添加到货通知
        /// </summary>
        /// <param name="materialmangement"></param>
        /// <returns></returns>
          Task<int> AddNotifsals(InsertNotifidatadto insertNotifidatadto);
        /// <summary>
        /// 删除到货通知
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteNotifidatas(int id);
        /// <summary>
        /// 获取到货通知根据id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<UpdateNotifdatadto> SelectByNotis(int id);
        /// <summary>
        /// 修改到货通知
        /// </summary>
        /// <param name="updateNotifdatadto"></param>
        /// <returns></returns>
        Task<int> UpdateArrivals(UpdateNotifdatadto updateNotifdatadto);
    }
}
